package com.diliuzun.delivery.mapper;

import com.diliuzun.delivery.entity.Book;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.ArrayList;

@Repository
public interface BookMapper {
    int addBook(Book book);

    int updateBook(Book book);

    int deleteBookById(Serializable id);

    Book selectBookById(Serializable id);

    ArrayList<Book> selectBooks(Book book);
}
